package com.foreverwin.mes.lims.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.foreverwin.mes.lims.model.LotTank;
import com.baomidou.mybatisplus.service.IService;
import com.foreverwin.mes.core.base.FrontPage;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 物料批次出入罐 服务类
 * </p>
 *
 * @author Max
 * @since 2020-03-11
 */
public interface LotTankService extends IService<LotTank> {

    /**
     *  分页查询
     * @param frontPage
     * @return
     */
    Page<LotTank> selectPage(FrontPage<LotTank> frontPage, LotTank lotTank);

    List<LotTank> selectList(LotTank lotTank);

    /**
     * 批次出入罐处理
     * @param site
     * @param tank
     * @param lot
     * @param item
     * @param moveType
     * @param actionTime
     */
    void lotCheckinOrCheckOut(String site, String tank, String lot, String qty,String item, String moveType, Date actionTime);

    /**
     * 通过外键查询罐内批次入罐时间升序
     * @param zItemTankBo
     * @return
     */
    List<LotTank> selectLotInTank ( String zItemTankBo );

    /**
     * 查询罐内批次详情，数量从库存获取
     * @param zItemTankBo
     * @return
     */
    List<LotTank> selectLotOfTankList (String zItemTankBo);
}